package com.mckillion.Exercise9;

public class DriveCommand implements Command {
	//CONCRETE COMMAND
	private Robot robot;

	public DriveCommand( Robot robot ){
		this.robot = robot;
	}

	// add the execute method here
	public void execute() {
		System.out.println("(ConcreteCommand)GrabCommand: Robot asked to grab");
        robot.drive();
	}
	
    @Override
    public void setRobotModel(Robot model) {
        this.robot = model;
    }

    public String toString(){
    	return this.getClass().getSimpleName();
    }
}
